# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-splunk-sdk
_pkgname=splunk-sdk
pkgver=2.1.0
pkgrel=1
pkgdesc='The Splunk Software Development Kit for Python.'
arch=('any')
url='https://pypi.org/project/splunk-sdk/#files'
depends=('python' 'python-deprecation')
makedepends=('python-setuptools')
license=('Apache')
options=(!emptydirs)
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('ef85abaf2ea0e28c097d11d6fed1f3c13f98440cb0312fb3e339f1fd0a35413f09c0189040d4892f032207b1cea65e50e0de16785b6000b5bd9f0b91deaf1d0f')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

